package com.crop.back.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分页参数")
    private Integer page = 1;

    @ApiModelProperty("单页大小")
    private Integer pageSize = 5;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("供应商ID")
    private Long supplierId;

    @ApiModelProperty("供应商姓名")
    private String supplierName;

    @ApiModelProperty("产品名称")
    private String name;

    @ApiModelProperty("产品分类ID")
    private Long categoryId;

    @ApiModelProperty("产品分类名称")
    private String categoryName;

    @ApiModelProperty("产品图片")
    private String imageUrl;

    @ApiModelProperty("品种")
    private String variety;

    @ApiModelProperty("规格")
    private String specification;

    @ApiModelProperty("种植/养殖方式")
    private String cultivationMethod;

    @ApiModelProperty("产品描述")
    private String description;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Boolean deleted;
}
